package top.dotgo.web.base.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import top.dotgo.web.base.R;

/**
 * @author jornl
 * @date 2020/2/27 14:54 星期四
 */
@FeignClient(name = "oauthFeignService")
public interface IOauthFeignService extends BaseFeignService {

    /**
     * 去 授权中心 验证 token
     *
     * @param token token
     * @return R
     */

    @ResponseBody
    @PostMapping("/oauth/oauth/token/check")
    R checkToken(@RequestParam("token") String token);


}
